require.config({
    baseUrl:    'scripts/',
    paths:  {
        'jquery':               '../../libs/jquery'
        , 'angular':            '../../libs/angular'
        , 'angular-mock':      '../../libs/angular-mocks'
        , 'echarts':            '../../libs/'
        , 'odometer':           '../../libs/odometer'
    },
    bundles:    {
    }
    , shim:   {
        'angular-mock':     {
            deps:   ['jquery', 'angular']
        },
        'angular':      {
            deps:           ['jquery']
            , exports:        'Angular'
        }
    }
});

require([
    'angular'
    , 'app'
    , 'services/socket'
    , 'services/pipe'
    , 'directives/echart'
    , 'directives/echart-panel'
    , 'directives/echart-style'
    , 'directives/echart-data'
    , 'directives/flop'
    , 'odometer'

], function(app) {
    // manually bootstrap app
    angular.element(document).ready(function () {
        angular.bootstrap(document, ['webChart']);
    });
    return app;
})

